package com.kevin.service.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 考试开始dto
 *
 * @author wh
 * @date 2023/05/25
 */
@Data
public class ExamStartDTO {
    @NotNull
    @ApiModelProperty(value = "id")
    private Long id;

    @NotEmpty(message = "开始类型不能为空")
    @ApiModelProperty(value = "开始类型 now:立即 point:定点开考")
    private String type;

    @ApiModelProperty(value = "开始时间 point时必填")
    private Date startTime;

    @Future(message = "结束时间不能小于当前时间")
    @ApiModelProperty(value = "结束时间")
    @NotNull(message = "结束时间不能为空")
    private Date endTime;
}
